#include <bits/stdc++.h>
using namespace std;
int main() {
  srand(time(NULL));
  vector<int> value(20);
  for (int i = 0; i < 20; ++i)
    value[i] = rand() % 100;
  for (auto k : value) {
    cout << k << " ";
  }
  int len = value.size();
  for (int i = 0; i < len; i++) {
    cout << value[i] << " ";
  }
  cout << endl;
  cout << endl;
  cout << *min_element(value.begin(), value.end()) << endl;
  cout << *min_element(value.begin() + 3, value.begin() + 11);
  return 0;
}